import reques from '@/utils/reques'

export function getAddress() {
    // 获取地址
    return reques({
        method: "get",
        url: '/address',
        isAuth: true // 需要认证
    })
}

export function postAddress(data) {
    // 添加地址
    return reques({
        method: "post",
        url: '/address',
        data,
        isAuth: true
    })
}